package ar.edu.itba.tp1.tpmariano;

import java.util.HashMap;
import java.util.Map;

public class BorderSwapGPSRule extends EdgeSwapGPSRule {

	private static Map<Position, Integer> numbers = new HashMap<Position,Integer>();
	static {
		numbers.put(new Position(1,0), 1);
		numbers.put(new Position(2,0), 1);
		numbers.put(new Position(3,1), 2);
		numbers.put(new Position(3,2), 2);
		numbers.put(new Position(1,3), 3);
		numbers.put(new Position(2,3), 3);
		numbers.put(new Position(0,1), 4);
		numbers.put(new Position(0,2), 4);
	}
	
	public BorderSwapGPSRule(int srcX, int srcY, int dstX, int dstY) {
		super(srcX, srcY, dstX, dstY);
	}
	
	@Override
	public String getName() {
		return "BORDER "+super.getName();
	}
	
	protected Map<Position, Integer> getNumbers() {
		return numbers;
	}
}
